<html>
<head>
<style type="text/css">
input::-moz-selection {
  background-color: Highlight;
  color: HighlightText;
}
</style>
</head>
<body onload="document.getElementById('i').select();">
<input id="i" value="text">
</body>
</html>